/*  1:   */ package org.jetbrains.jps.model.artifact.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsElementFactory;
import org.jetbrains.jps.model.JpsModel;
import org.jetbrains.jps.model.artifact.JpsArtifact;
import org.jetbrains.jps.model.artifact.JpsArtifactReference;
import org.jetbrains.jps.model.impl.JpsNamedElementReferenceImpl;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class JpsArtifactReferenceImpl
/* 11:   */   extends JpsNamedElementReferenceImpl<JpsArtifact, JpsArtifactReferenceImpl>
/* 12:   */   implements JpsArtifactReference
/* 13:   */ {
/* 14:   */   public JpsArtifactReferenceImpl(@NotNull String paramString)
/* 15:   */   {
/* 16:30 */     super(JpsArtifactRole.ARTIFACT_COLLECTION_ROLE, paramString, JpsElementFactory.getInstance().createProjectReference());
/* 17:   */   }
/* 18:   */   
/* 19:   */   private JpsArtifactReferenceImpl(JpsArtifactReferenceImpl paramJpsArtifactReferenceImpl)
/* 20:   */   {
/* 21:34 */     super(paramJpsArtifactReferenceImpl);
/* 22:   */   }
/* 23:   */   
/* 24:   */   @NotNull
/* 25:   */   public JpsArtifactReferenceImpl createCopy()
/* 26:   */   {
/* 27:40 */     void tmp8_5 = new JpsArtifactReferenceImpl(this);
/* 28:40 */     if (tmp8_5 == null) {
/* 29:40 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/artifact/impl/JpsArtifactReferenceImpl", "createCopy" }));
/* 30:   */     }
/* 31:40 */     return tmp8_5;
/* 32:   */   }
/* 33:   */   
/* 34:   */   @NotNull
/* 35:   */   public String getArtifactName()
/* 36:   */   {
/* 37:46 */     String tmp4_1 = this.myElementName;
/* 38:46 */     if (tmp4_1 == null) {
/* 39:46 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/artifact/impl/JpsArtifactReferenceImpl", "getArtifactName" }));
/* 40:   */     }
/* 41:46 */     return tmp4_1;
/* 42:   */   }
/* 43:   */   
/* 44:   */   public JpsArtifactReferenceImpl asExternal(@NotNull JpsModel paramJpsModel)
/* 45:   */   {
/* 46:51 */     if (paramJpsModel == null) {
/* 47:51 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/artifact/impl/JpsArtifactReferenceImpl", "asExternal" }));
/* 48:   */     }
/* 49:51 */     paramJpsModel.registerExternalReference(this);
/* 50:52 */     return this;
/* 51:   */   }
/* 52:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.artifact.impl.JpsArtifactReferenceImpl

 * JD-Core Version:    0.7.0.1

 */